    {% for item in department_tree %}
    <li>
        <div>
            <p>
                <a href="#" id="as_{{ item.id }}" class="sc" OnClick="return Unhide(this, {{ item.id }})">
                    <img id="ispm_{{ item.id }}" src="{% load media %}{% media_prefix %}img/plus.gif"/>
                </a>
                <a href="#" class="da" OnClick="return get_dept({{ item.id }})">
                    <img src="{% if item.icon %}{% media_prefix %}{{ item.icon }}{% else %}{% media_prefix %}img/department.gif{% endif %}" class="i" />
                    {{ item.name }}
                </a>
            </p>
        </div>
        <ul id="uls_{{ item.id }}"></ul>
     </li>   
    {% endfor %}

